﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace ARchGL.Platform.Core
{
    /// <summary>
    /// 项目工程《分部分项》模板
    /// 检验批
    /// </summary>
    [Table("JN_" + nameof(ProjectCategoryTemplate))]
    public class ProjectCategoryTemplate : Entity<Guid>, IMustHaveTenant
    {
        /// <summary>
        /// 编码
        /// </summary>
        [MaxLength(100)]
        public string Code { get; set; }
        public string Name { get; set; }

        public Guid ParentId { get; set; }

        public int TenantId { get; set; }

        /// <summary>
        /// 建设工程=1
        /// 市政工程=2
        /// </summary>
        public EnumTemplateType Type { get; set; }

        /// <summary>
        /// 分部 = 12,
        /// 分项 = 13,
        /// 子文件 = 15
        /// </summary>
        public EnumDocumentPType PType { get; set; }

        /// <summary>
        /// 上级编号
        /// </summary>
        [MaxLength(100)]
        //[DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public string ParentCode { get; set; }
    }
}
